#include <iostream>

#include "SmartPointer.h"
#include "Exception.h"

using namespace demolib;
using namespace std;

int main(void)
{
    try
    {
        THROW_EXCEPTION(IndexOutOfBoundsException, "message");
    }
    catch(const IndexOutOfBoundsException& e)
    {
        cout << e.location() << endl << e.message() << endl;
    }
    return 0;
}
